<template>
		<view v-for="(item,index) in newsList" :key="item.title" style="margin: 10rpx;">
			<NewsView 
				:title="item.title" 
				:isTop="item.isTop" 
				:author="item.author" 
				:comment="item.comment"
				:time="item.time" 
				:mode="item.newType" 
				:imagelist="item.imagelist" 
				:showSearch="item.showSearch"
				:bgColor="item.bgColor">
				<template v-slot:tips>
					<view><text style="color:gray;">二十大</text></view>
				</template>
			</NewsView>
		</view>
</template>

<script>
	import NewsView from "../../../components/NewsView.vue"
	export default {
		components: {
			NewsView
		},
		data() {
			return {
				newsList: [],
			}
		},
		onLoad() {
			this.newsList = getApp().globalData.dataObj; 
			console.log("onLoad--> newsList: " + this.newsList.length);
			},
		methods: {

		}
	}
</script>

<style>

</style>